package org.darkforest.common.services;

import org.darkforest.model.PXianshiGoods;
import org.darkforest.vo.AjaxReturnEntity;
import org.darkforest.vo.XianShiGoodsPage;

import java.util.List;
import java.util.Map;

/**
 * Created by Libing on 2015/6/20.
 */
public interface PXianshiGoodsService {
    /**
     * 根据条件查询限时折扣商品列表
     * @param pXianshiGoods
     * @return
     */
    List<PXianshiGoods> findPXianshiGoodsListByCondition(PXianshiGoods pXianshiGoods);

    /**
     * 限时活动添加商品
     * @param goods_id
     * @param xianshi_id
     * @param xianshi_price
     * @param xinshi_jingo
     * @return
     */
    AjaxReturnEntity<PXianshiGoods> doAddDiscountGoods(Integer goods_id, Integer xianshi_id, float xianshi_price, String xinshi_jingo);

    /**
     * 删除限时折扣活动商品
     * @param xianshi_goods_id
     * @return
     */
    AjaxReturnEntity<PXianshiGoods> deleteDiscountGoods(Integer xianshi_goods_id);

    /**
     * 编辑限时折扣商品
     * @param xianshi_goods_id
     * @param xianshi_price
     * @param goods_jingo
     * @return
     */
    AjaxReturnEntity<PXianshiGoods> editDiscountGoods(Integer xianshi_goods_id, float xianshi_price, String goods_jingo);

    /**
     * 商品限时折扣宣传图
     * @param pxianshiGoodsId
     * @param xianshiId
     * @param activeImage
     */
    void modifyPXianShiGoodsToUploadImage(String pxianshiGoodsId, String xianshiId, String activeImage);

    public XianShiGoodsPage getXianshiGoodsPage(XianShiGoodsPage page);

    void updatePXianshiStatePriceBatch(Map<String, Object> map);

    /**
     * 批量获取特卖商品根据特卖活动ID
     * @param map
     * @return
     */
    List<PXianshiGoods> batchFindPXianshiGoods(Map<String, Object> map);
}
